package com.cxx.home.dto.bill;

import com.cxx.common.PlainView;
import com.cxx.common.ReadView;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonView;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;
import java.util.List;

@Getter
@Setter
@JsonView(PlainView.class)
public class BillSummaryDto {
    @Schema(description = "id")
    @JsonView(ReadView.class)
    private Long id;

    @Schema(description = "账本名称")
    private String bookName;

    @Schema(description = "账单类型")
    private String type;

    @Schema(description = "账单类别")
    private String category;

    @Schema(description = "账单地点")
    private String location;

    @Schema(description = "账单账户")
    private String payAccount;

    @Schema(description = "账单金额")
    private Double amount;

    @Schema(description = "账单内容")
    private String content;

    @Schema(description = "账单备注")
    private String remark;

    @Schema(description = "账单日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date date;
}